package com.whz.workmanageol.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 教师发布作业上传附件存储格式
 * /teacherid/gradeid/courseid/seq/publish/seq.zip
 */
@Entity
@Table
public class Publish implements Serializable {
    @Id
    private String id;
    @Column
    // 第n次作业
    private String seq;
    @Column
    // 作业内容
    private String content;
    @Column
    private String filepath;
    @Column
    private String filename;
    @Column
    private String suffix;
    @Column
    private String teacherid;
    @Column
    private String gradeid;
    @Column
    private String courseid;
    @Column
    private Date publishtime;
    @Column
    // 作业截取日期
    private Date deadline;
    private String hasattach;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSeq() {
        return seq;
    }

    public void setSeq(String seq) {
        this.seq = seq;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFilepath() {
        return filepath;
    }

    public void setFilepath(String filepath) {
        this.filepath = filepath;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public String getTeacherid() {
        return teacherid;
    }

    public void setTeacherid(String teacherid) {
        this.teacherid = teacherid;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    public Date getPublishtime() {
        return publishtime;
    }

    public void setPublishtime(Date publishtime) {
        this.publishtime = publishtime;
    }

    public String getGradeid() {
        return gradeid;
    }

    public void setGradeid(String gradeid) {
        this.gradeid = gradeid;
    }

    public String getCourseid() {
        return courseid;
    }

    public void setCourseid(String courseid) {
        this.courseid = courseid;
    }

    public String getHasattach() {
        return hasattach;
    }

    public void setHasattach(String hasattach) {
        this.hasattach = hasattach;
    }

    @Override
    public String toString() {
        return "Publish{" +
                "id='" + id + '\'' +
                ", seq='" + seq + '\'' +
                ", content='" + content + '\'' +
                ", filepath='" + filepath + '\'' +
                ", filename='" + filename + '\'' +
                ", suffix='" + suffix + '\'' +
                ", teacherid='" + teacherid + '\'' +
                ", gradeid='" + gradeid + '\'' +
                ", courseid='" + courseid + '\'' +
                ", publishtime=" + publishtime +
                ", deadline=" + deadline +
                ", hasattach='" + hasattach + '\'' +
                '}';
    }
}
